function httpGet(api, data, handler) {
    $.get({
        url: api,
        data: data,
        success: function (response) {
            var tmpData = response;
            tmpData.isSuccess = tmpData.status == 200
            handler(tmpData);
        },
        error: function (data) {
            handler({
                data: [],
                errmsg: data.statusText,
                status: 500,
                isSuccess: false,
            });
        }
    });
}
